package com.f5.management.utils;

public class SerialUtil {
	//生成小区的编号
	public static String CommunitySerial(int n) {
		String serial = "C1";
		String str = n + "";
		String num = str;
		 for (int i = 0; i < 3 - str.length(); i++) {
			num = 0 + num;
		}
		 return serial + num;
	}
	//生成栋数的编号
	public static String BuildingSerial(int n) {
		String serial = "B1";
		String str = n + "";
		String num = str;
		for (int i = 0; i < 3 - str.length(); i++) {
			num = 0 + num;
		}
		return serial + num;
	}
	//生成房产的编号
	public static String RESerial(int n) {
		String serial = "RE1";
		String str = n + "";
		String num = str;
		for (int i = 0; i < 3 - str.length(); i++) {
			num = 0 + num;
		}
		return serial + num;
	}
}
